package com.happy.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName ( "data_info" )
public class DataEntity extends BaseEntity {

    @TableId ( value = "id", type = IdType.AUTO )
    private Integer id;
    @TableField ( "title" )
    private String title;
    @TableField ( "fileUrl" )
    private String fileUrl;
    @TableField ( "fileDisk" )
    private String fileDisk;
    @TableField ( "integral" )
    private Integer integral;
    @TableField ( "downNum" )
    private Integer downNum;
    @TableField("categoryId")
    private Integer categoryId;

    @TableField(exist = false)
    private String categoryName;

    @TableField ( "createTime" )
    private Date createTime;
    @TableField("changeTime")
    private Date changeTime;

    public Integer getId () {
        return id;
    }

    public void setId ( Integer id ) {
        this.id = id;
    }

    public String getTitle () {
        return title;
    }

    public void setTitle ( String title ) {
        this.title = title;
    }

    public String getFileUrl () {
        return fileUrl;
    }

    public void setFileUrl ( String fileUrl ) {
        this.fileUrl = fileUrl;
    }

    public String getFileDisk () {
        return fileDisk;
    }

    public void setFileDisk ( String fileDisk ) {
        this.fileDisk = fileDisk;
    }

    public Integer getIntegral () {
        return integral;
    }

    public void setIntegral ( Integer integral ) {
        this.integral = integral;
    }

    public Integer getDownNum () {
        return downNum;
    }

    public void setDownNum ( Integer downNum ) {
        this.downNum = downNum;
    }

    public Integer getCategoryId () {
        return categoryId;
    }

    public void setCategoryId ( Integer categoryId ) {
        this.categoryId = categoryId;
    }

    public String getCategoryName () {
        return categoryName;
    }

    public void setCategoryName ( String categoryName ) {
        this.categoryName = categoryName;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime ( Date createTime ) {
        this.createTime = createTime;
    }

    public Date getChangeTime () {
        return changeTime;
    }

    public void setChangeTime ( Date changeTime ) {
        this.changeTime = changeTime;
    }
}
